package com.example.springboottest.example.visitor;

import java.util.ArrayList;
import java.util.List;

public class SwaggerElement {
    List<NodeElement> eleList = new ArrayList<NodeElement>();

    public void add(NodeElement element) {
        eleList.add(element);
    }

    public void accept(Visitor visitor) {
        for (NodeElement ele : eleList) {
            ele.accept(visitor);
        }
    }
}
